package com.example.parkdemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.user.ParkingResult
import com.example.base.user.ParkingResultItem
import com.example.parkdemo.R

class ParkingAdapter : BaseQuickAdapter<ParkingResultItem, BaseViewHolder>(R.layout.item_parking) {
    override fun convert(holder: BaseViewHolder, item: ParkingResultItem) {
        holder.setText(R.id.item_parking_id_tv, "车位id:${item.parkId}")
        holder.setText(R.id.item_parking_name_tv, "车位名称:${item.parkName}")
        holder.setText(R.id.item_parking_time_tv, "车位时间:${item.parkTime}")
        holder.setText(R.id.item_parking_start_time_tv, "开始时间:${item.parkStart}")
        holder.setText(R.id.item_parking_end_time_tv, "结束时间:${item.parkEnd}")
    }
}